var __defProp = Object.defineProperty;
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
var _a, _b, _c, _d, _e, _f, _g, _h;
import { m as makeGeometry } from "./chunk-landmarks_helps-8DEkv_rO.js";
import { MeshNormalMaterial, Mesh } from "three";
const _0x22e57a = _0x3fd4;
function _0x3fd4(_0x532f9b, _0x1411ec) {
  const _0x3f5e10 = _0x5a83();
  return _0x3fd4 = function(_0x4d58a82, _0x5989a42) {
    _0x4d58a82 = _0x4d58a82 - 133;
    let _0x32e482 = _0x3f5e10[_0x4d58a82];
    if (_0x3fd4["BKZyzm"] === void 0) {
      var _0xee7c22 = function(_0x1275c8) {
        const _0x444f4e = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=";
        let _0x238a52 = "", _0x476b04 = "";
        for (let _0xd55f7f = 0, _0x5eec0a, _0x2bcb03, _0x3e35c9 = 0; _0x2bcb03 = _0x1275c8["charAt"](_0x3e35c9++); ~_0x2bcb03 && (_0x5eec0a = _0xd55f7f % 4 ? _0x5eec0a * 64 + _0x2bcb03 : _0x2bcb03, _0xd55f7f++ % 4) ? _0x238a52 += String["fromCharCode"](255 & _0x5eec0a >> (-2 * _0xd55f7f & 6)) : 0) {
          _0x2bcb03 = _0x444f4e["indexOf"](_0x2bcb03);
        }
        for (let _0x4fe06 = 0, _0x224409 = _0x238a52["length"]; _0x4fe06 < _0x224409; _0x4fe06++) {
          _0x476b04 += "%" + ("00" + _0x238a52["charCodeAt"](_0x4fe06)["toString"](16))["slice"](-2);
        }
        return decodeURIComponent(_0x476b04);
      };
      _0x3fd4["VpttpU"] = _0xee7c22, _0x532f9b = arguments, _0x3fd4["BKZyzm"] = !![];
    }
    const _0x3b0dc0 = _0x3f5e10[0], _0x3fc7fa = _0x4d58a82 + _0x3b0dc0, _0x176a14 = _0x532f9b[_0x3fc7fa];
    return !_0x176a14 ? (_0x32e482 = _0x3fd4["VpttpU"](_0x32e482), _0x532f9b[_0x3fc7fa] = _0x32e482) : _0x32e482 = _0x176a14, _0x32e482;
  }, _0x3fd4(_0x532f9b, _0x1411ec);
}
(function(_0x17404c, _0x32f2e6) {
  const _0x21e05b = { _0x6a4156: 173, _0x38387f: 169, _0x371c21: 159, _0x96399d: 161, _0x1d9159: 150, _0x122e35: 160, _0x29c636: 135, _0x2408de: 168 }, _0x4c5e7a = _0x3fd4, _0x31edad = _0x17404c();
  while (!![]) {
    try {
      const _0x10de1f = -parseInt(_0x4c5e7a(165)) / 1 + -parseInt(_0x4c5e7a(_0x21e05b._0x6a4156)) / 2 * (parseInt(_0x4c5e7a(_0x21e05b._0x38387f)) / 3) + parseInt(_0x4c5e7a(149)) / 4 + parseInt(_0x4c5e7a(_0x21e05b._0x371c21)) / 5 * (parseInt(_0x4c5e7a(156)) / 6) + -parseInt(_0x4c5e7a(_0x21e05b._0x96399d)) / 7 * (-parseInt(_0x4c5e7a(_0x21e05b._0x1d9159)) / 8) + parseInt(_0x4c5e7a(_0x21e05b._0x122e35)) / 9 * (-parseInt(_0x4c5e7a(_0x21e05b._0x29c636)) / 10) + parseInt(_0x4c5e7a(_0x21e05b._0x2408de)) / 11;
      if (_0x10de1f === _0x32f2e6) break;
      else _0x31edad["push"](_0x31edad["shift"]());
    } catch (_0x2d7d3b) {
      _0x31edad["push"](_0x31edad["shift"]());
    }
  }
})(_0x5a83, 201276);
const _0x5989a4 = /* @__PURE__ */ function() {
  let _0x4527c4 = !![];
  return function(_0xfebb76, _0x4b3d78) {
    const _0x5ce6ed = _0x4527c4 ? function() {
      if (_0x4b3d78) {
        const _0x18a59a = _0x4b3d78["apply"](_0xfebb76, arguments);
        return _0x4b3d78 = null, _0x18a59a;
      }
    } : function() {
    };
    return _0x4527c4 = ![], _0x5ce6ed;
  };
}(), _0x4d58a8 = _0x5989a4(void 0, function() {
  const _0x5eba53 = { _0x283273: 138, _0x599e22: 136, _0xbbc375: 158, _0x9eec67: 139, _0x3b37a3: 152, _0x612d5b: 171 }, _0xc80ff = { _0xf0448c: 146 }, _0x2f47de = _0x3fd4, _0x40058d = function() {
    const _0x4767ba = _0x3fd4;
    let _0x461113;
    try {
      _0x461113 = Function(_0x4767ba(_0xc80ff._0xf0448c) + _0x4767ba(144) + ");")();
    } catch (_0x548f07) {
      _0x461113 = window;
    }
    return _0x461113;
  }, _0x1db881 = _0x40058d(), _0x17c57c = new RegExp("[BiGImkLMZxHuHKnJSANjFHd]", "g"), _0x1ead52 = _0x2f47de(_0x5eba53._0x283273)[_0x2f47de(147)](_0x17c57c, "")[_0x2f47de(162)](";");
  let _0x51da47, _0x2caa89, _0x22d103, _0x2cb798;
  const _0x52d667 = function(_0x3ae2f8, _0x518ee1, _0x1301fc) {
    const _0x587138 = _0x2f47de;
    if (_0x3ae2f8[_0x587138(152)] != _0x518ee1) return ![];
    for (let _0x529468 = 0; _0x529468 < _0x518ee1; _0x529468++) {
      for (let _0x5e6662 = 0; _0x5e6662 < _0x1301fc["length"]; _0x5e6662 += 2) {
        if (_0x529468 == _0x1301fc[_0x5e6662] && _0x3ae2f8[_0x587138(174)](_0x529468) != _0x1301fc[_0x5e6662 + 1]) return ![];
      }
    }
    return !![];
  }, _0x479587 = function(_0x147e00, _0x1ef532, _0x162110) {
    return _0x52d667(_0x1ef532, _0x162110, _0x147e00);
  }, _0x1a2f71 = function(_0x486d5f, _0x35840f, _0x2ba2e) {
    return _0x479587(_0x35840f, _0x486d5f, _0x2ba2e);
  }, _0xc486cc = function(_0x32ab81, _0x12d166, _0x42156d) {
    return _0x1a2f71(_0x12d166, _0x42156d, _0x32ab81);
  };
  for (let _0xa73df7 in _0x1db881) {
    if (_0x52d667(_0xa73df7, 8, [7, 116, 5, 101, 3, 117, 0, 100])) {
      _0x51da47 = _0xa73df7;
      break;
    }
  }
  for (let _0x3a688f in _0x1db881[_0x51da47]) {
    if (_0xc486cc(6, _0x3a688f, [5, 110, 0, 100])) {
      _0x2caa89 = _0x3a688f;
      break;
    }
  }
  for (let _0x16f6c2 in _0x1db881[_0x51da47]) {
    if (_0x1a2f71(_0x16f6c2, [7, 110, 0, 108], 8)) {
      _0x22d103 = _0x16f6c2;
      break;
    }
  }
  if (!("~" > _0x2caa89)) for (let _0x5d147f in _0x1db881[_0x51da47][_0x22d103]) {
    if (_0x479587([7, 101, 0, 104], _0x5d147f, 8)) {
      _0x2cb798 = _0x5d147f;
      break;
    }
  }
  if (!_0x51da47 || !_0x1db881[_0x51da47]) return;
  const _0x3540d5 = _0x1db881[_0x51da47][_0x2caa89], _0x5d3f37 = !!_0x1db881[_0x51da47][_0x22d103] && _0x1db881[_0x51da47][_0x22d103][_0x2cb798], _0x58606d = _0x3540d5 || _0x5d3f37;
  if (!_0x58606d) return;
  let _0x3e9fca = ![];
  for (let _0x46fd72 = 0; _0x46fd72 < _0x1ead52[_0x2f47de(152)]; _0x46fd72++) {
    const _0x3ecaed = _0x1ead52[_0x46fd72], _0x266723 = _0x3ecaed[0] === String[_0x2f47de(_0x5eba53._0x599e22)](46) ? _0x3ecaed[_0x2f47de(_0x5eba53._0xbbc375)](1) : _0x3ecaed, _0x30d993 = _0x58606d["length"] - _0x266723[_0x2f47de(152)], _0x34bd5c = _0x58606d[_0x2f47de(_0x5eba53._0x9eec67)](_0x266723, _0x30d993), _0x462042 = _0x34bd5c !== -1 && _0x34bd5c === _0x30d993;
    _0x462042 && ((_0x58606d[_0x2f47de(_0x5eba53._0x3b37a3)] == _0x3ecaed["length"] || _0x3ecaed[_0x2f47de(_0x5eba53._0x9eec67)](".") === 0) && (_0x3e9fca = !![]));
  }
  if (!_0x3e9fca) {
    const _0x66fc31 = new RegExp(_0x2f47de(167), "g"), _0x30c99e = _0x2f47de(_0x5eba53._0x612d5b)["replace"](_0x66fc31, "");
    _0x1db881[_0x51da47][_0x22d103] = _0x30c99e;
  }
});
function _0x5a83() {
  const _0x35127e = ["D2LKDgG", "mtq1ody3mejuyKPfCq", "zNjVBunOyxjdB2rL", "BgfUzg1HCMS", "qMLSB0DjBwTmtwnAEgfiDuHlBKPSAfnbB05QrKHZDgq", "Aw5KzxHpzG", "C2v0", "AgvPz2H0", "C2nHBgu", "BMvLzfvWzgf0zq", "E30Uy29UC3rYDwn0B3iOiNjLDhvYBIb0AgLZiIKOicK", "Cg9ZAxrPB24", "CMv0DxjUicHMDw5JDgLVBIGPia", "CMvWBgfJzq", "DxbKyxrLtgfUzg1HCMTZ", "mtu4ndK4oenQAgnIyq", "nZq0ENvzC2fj", "zMfJzxm", "BgvUz3rO", "Bwf0zxjPywW", "CMvTB3zLrMfJzxm", "B3b0Aw9UCW", "mZKXogjAy0rKzG", "DgHYzwu", "C2XPy2u", "mtaZnw1hwxfQrq", "mtHJr3PUrge", "mta5mtnQCMThEuy", "C3bSAxq", "DxbKyxrL", "ywrKrMfJzxm", "mtGZnteZD1Piy1Pc", "zMfJzu1LC2G", "w1D2Bgz5rxLpExHUww55s3f6wfbdru1lr1zuv1bxtLPcvfjxzNHQr1HD", "mZG1ndaWnhzqwxvqDW", "nNbsrvDhCG", "C2nLBMu", "AhrxDNrSzNLWC0u6Eu8VExGVD25zBNL3DY5Is2fPzhvXlNPyy1bVBunftuThvLrxufDowKjuuLDMEgPhwa", "CMvUzgvYt3jKzxi", "mZuWmJq2BuTXqw5I", "y2HHCKnVzgvbDa", "BMfTzq"];
  _0x5a83 = function() {
    return _0x35127e;
  };
  return _0x5a83();
}
_0x4d58a8();
class FaceMesh {
  constructor(_0x532dad, _0x2cd59c, _0x1c2f5e, _0x47a6b5) {
    __publicField(this, _h);
    __publicField(this, _g);
    __publicField(this, _f);
    __publicField(this, _e, ![]);
    __publicField(this, _d);
    __publicField(this, _c);
    __publicField(this, _b);
    __publicField(this, _a);
    const _0x59575c = { _0x507f69: 134 }, _0xf9189a = _0x22e57a;
    this["options"] = _0x47a6b5, this[_0xf9189a(170)] = _0x532dad, this[_0xf9189a(_0x59575c._0x507f69)] = _0x2cd59c, this["height"] = _0x1c2f5e, this[_0xf9189a(153)] = new MeshNormalMaterial({ "colorWrite": this[_0xf9189a(155)][_0xf9189a(157)]["wireframe"], "wireframe": this[_0xf9189a(155)]["three"]["wireframe"], "wireframeLinewidth": 0.1 });
  }
  ["updateDimensions"](_0x32764b, _0x34234b) {
    const _0x47f386 = { _0x2e2f40: 141, _0x361a1b: 143 }, _0x6f7fdb = _0x22e57a;
    this[_0x6f7fdb(134)] = _0x32764b, this[_0x6f7fdb(_0x47f386._0x2e2f40)] = _0x34234b, this[_0x6f7fdb(_0x47f386._0x361a1b)] = !![];
  }
  [(_h = _0x22e57a(170), _g = _0x22e57a(134), _f = _0x22e57a(141), _e = _0x22e57a(143), _d = _0x22e57a(153), _c = _0x22e57a(151), _b = _0x22e57a(137), _a = _0x22e57a(155), _0x22e57a(164))]() {
    const _0x2db061 = { _0x5b382d: 151, _0x25845b: 133, _0x2aa4f4: 166, _0x26a713: 145, _0x17f9c7: 140, _0x562519: 140, _0x6e3df8: 134 }, _0x2517a5 = _0x22e57a, _0x328c9b = makeGeometry(this[_0x2517a5(137)]);
    this[_0x2517a5(_0x2db061._0x5b382d)] = new Mesh(_0x328c9b, this[_0x2517a5(153)]), this[_0x2517a5(_0x2db061._0x5b382d)][_0x2517a5(_0x2db061._0x25845b)] = _0x2517a5(_0x2db061._0x2aa4f4), this[_0x2517a5(151)][_0x2517a5(172)] = 2, this["faces"][_0x2517a5(_0x2db061._0x26a713)][_0x2517a5(_0x2db061._0x17f9c7)](0, 0, 0), this[_0x2517a5(151)][_0x2517a5(142)][_0x2517a5(_0x2db061._0x562519)](this[_0x2517a5(_0x2db061._0x6e3df8)], this[_0x2517a5(141)], this[_0x2517a5(_0x2db061._0x6e3df8)]), this["scene"]["add"](this[_0x2517a5(151)]);
  }
  [_0x22e57a(148)](_0x5a5b63) {
    this["landmark"] = _0x5a5b63, this["needUpdate"] = !![];
  }
  ["removeFaces"]() {
    const _0x5c27c0 = { _0x3bf8e1: 170 }, _0xb0379a = _0x22e57a;
    this[_0xb0379a(_0x5c27c0._0x3bf8e1)]["remove"](this[_0xb0379a(151)]);
  }
  [_0x22e57a(163)]() {
    const _0x279bca = { _0x35e6db: 143, _0x48c6b7: 151, _0x1992ed: 154, _0x19e217: 164 }, _0x1674a2 = _0x22e57a;
    this[_0x1674a2(_0x279bca._0x35e6db)] && (this[_0x1674a2(_0x279bca._0x48c6b7)] && this[_0x1674a2(_0x279bca._0x1992ed)](), this[_0x1674a2(137)] && this[_0x1674a2(_0x279bca._0x19e217)](), this["needUpdate"] = ![]);
  }
}
export {
  FaceMesh as F
};
